﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="companyList.ascx.cs" Inherits="uswinweb.datacontrol.companyList" %>
<table border="0" cellpadding="0" cellspacing="0" class="edtb">
				<thead>
					<tr>
                    <td width="5%">&nbsp;</td>
						<td onclick="minoSort(' order by cname asc ')">公司名称</td>
                        <td>英文名称</td>
                        <td width="10%">联系人</td>
                        <td width="10%">管理员</td>
						<td width="20%">操  作</td>
					</tr>
				</thead>
				<tbody>
                <%foreach (System.Data.DataRow dr in compTab.Rows)
                  { %>
                  <tr>
                  <td><input type="checkbox" name="ids" value="<%=dr["id"].ToString()%>"  id="ids"/></td>
						<td><%=dr["cname"] %></td>
                        <td><%=dr["ecname"]%></td>
                        <td><%=dr["relater"]%></td>
                        <td><%=dr["rname"].ToString() == "" ? "暂无" : dr["rname"].ToString()%></td>
						<td>
                            <a href="../admin/pop_corpmanager_set.aspx?cid=<%=dr["id"] %>" rel="iframe" title="企业管理员设置 :: :: width:700,height:600" class="l_blue lightview">设置管理员</a>
							<a href="../admin/compmanage_update.aspx?cid=<%=dr["id"] %>" rel="iframe" title=" :: :: width:600,height:700" class="l_blue lightview">修改</a>
							<a title="" class="l_blue" href="#" onclick="del('<%=dr["id"] %>')">删除</a>
						</td>
					</tr>
                <%} %>
				</tbody>
			<tfoot>
				<tr>
					<td colspan="15">
						<%=pageList %>
					</td>
				</tr>
			</tfoot>
			</table>
            <script>
                function del(val) {


                    if (confirm("该操作不可恢复,您确定要删除吗?")) {

                        loading();
                        if (val == 'all') {
                            val = checkedlist('ids');
                        }
                        if (val != "") {
                            AjaxHelper.Updater('companyList.ascx', 'showdata', 'action=del&parms=' + val + '');
                            parent.reclcik();
                        }
                    } else {
                    }

                }
                function minoSort(val) {
                    loading();
                    AjaxHelper.Updater('companyList.ascx', 'showdata', 'action=sort&parms=' + val + '');
                }

            </script>